package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/**
 * 员工实体
 */
public class EmployeeBean {
    /**员工id*/
    private int employeeId;
    /**员工姓名*/
    private String name;
    /**员工生日*/
    private LocalDate birthday;
    /**工资*/
    private int money;
    /**电话*/
    private int phone;
    /**头像*/
    private String face;
    /**员工入职时间*/
    private LocalDate jobStartDay = LocalDate.now();
    /**员工特长*/
    private String job;
    /**状态*/
    private String state = "在职";
    /**员工项目集合*/
    private List<ProjectBean> managerList;

    public EmployeeBean() {
    }

    public EmployeeBean(String name, LocalDate birthday, int money, int phone,
                        String face, String job) {
        this.name = name;
        this.birthday = birthday;
        this.money = money;
        this.phone = phone;
        this.face = face;
        this.job = job;
    }

    public int getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(int employeeId) {
        this.employeeId = employeeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public int getPhone() {
        return phone;
    }

    public void setPhone(int phone) {
        this.phone = phone;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public LocalDate getJobStartDay() {
        return jobStartDay;
    }

    public void setJobStartDay(LocalDate jobStartDay) {
        this.jobStartDay = jobStartDay;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public List<ProjectBean> getManagerList() {
        return managerList;
    }

    public void setManagerList(List<ProjectBean> managerList) {
        this.managerList = managerList;
    }

    @Override
    public String toString() {
        return "EmployeeBean{" +
                "employeeId=" + employeeId +
                ", name='" + name + '\'' +
                ", birthday=" + birthday +
                ", money=" + money +
                ", phone='" + phone + '\'' +
                ", face='" + face + '\'' +
                ", jobStartDay=" + jobStartDay +
                ", job='" + job + '\'' +
                ", state='" + state + '\'' +
                ", managerList=" + managerList +
                '}'+"\n";
    }
}
